#include<iostream>
using namespace std;


int main(int argc,char *argv[],char *env[])//mycommand execv中myargv会传递给执行程序，也就是说会被main的命令行参数接收
{

    cout<<argv[0]<<" begin running "<<endl;
    cout<<"这时命令行参数"<<endl;
    int i =0;
    for(;argv[i];i++)
    {
        cout<<i<<":"<<argv[i]<<endl;
    }

  //  cout<<"hello fx"<<endl;
  //  cout<<"hello fx"<<endl;
  //  cout<<"hello fx"<<endl;
  //  cout<<"hello fx"<<endl;
  //

    cout<<" ---这是环境变量信息----"<<endl;
    for(i=0;env[i];i++)
    {
        cout<< i <<" : "<<env[i]<<endl;
    }

    cout<<" stop running "<<endl;
    return 0;
}
